--[[--
类名: Event.lua
创建日期: 2015-5-7
创建人: 陈小虎
功能描述: 游戏事件父类
修改内容：
修改日期:
修改人:
修改备注:
]]

local Event = class("Event")

Event.TALK_EVENT = "TALK_EVENT"
Event.HEART_WORDS_EVENT = "HEART_WORDS_EVENT"
Event.STORY_MODE_EVENT = "STORY_MODE_EVENT"
Event.TASK_FINISH_EVENT = "TASK_FINISH_EVENT"
Event.ASK_FOR_SPECIAL_TASK_EVENT = "ASK_FOR_SPECIAL_TASK_EVENT"
Event.CHANGE_MAP_EVENT = "CHANGE_MAP_EVENT"
Event.WALK_EVENT = "WALK_EVENT"
Event.START_EVENTS_EVENT = "START_EVENTS_EVENT"
Event.TASK_BATTLE_EVENT = "TASK_BATTLE_EVENT"
Event.TASK_BATTLE_TILL_OVER_EVENT = "TASK_BATTLE_TILL_OVER_EVENT"
Event.COMMON_BATTLE_EVENT = "COMMON_BATTLE_EVENT"
Event.EVENTS_FINISH_EVENT = "EVENTS_FINISH_EVENT"
Event.AUTO_PATROL_EVENT = "AUTO_PATROL_EVENT"
Event.ANI_PLAY_EVENT = "ANI_PLAY_EVENT"
Event.ANI_MOVE_EVENT = "ANI_MOVE_EVENT"
Event.DELETE_ANI_EVENT = "DELETE_ANI_EVENT"
Event.SOUND_CONTROL_EVENT = "SOUND_CONTROL_EVENT"
Event.PLAY_SOUND_EVENT = "PLAY_SOUND_EVENT"
Event.STOP_SOUND_EVENT = "STOP_SOUND_EVENT"
Event.SHOW_NPC_EVENT = "SHOW_NPC_EVENT"
Event.FOCUS_TRANS_EVENT = "FOCUS_TRANS_EVENT"
Event.NPC_JUMP_EVENT = "NPC_JUMP_EVENT"
Event.CAMERA_MOVE_EVENT = "CAMERA_MOVE_EVENT"
Event.WAIT_EVENT = "WAIT_EVENT"
Event.NPC_DIRECTION_EVENT = "NPC_DIRECTION_EVENT"
Event.CAMERA_ZOOM_EVENT = "CAMERA_ZOOM_EVENT"
Event.CAMERA_ZOOM_TO_EVENT = "CAMERA_ZOOM_TO_EVENT"
Event.NPC_MOVE_EVENT = "NPC_MOVE_EVENT"
Event.RANDOM_EVENT = "RANDOM_EVENT"
Event.PLAY_ACTION_EVENT = "PLAY_ACTION_EVENT"
Event.DELETE_NPC_EVENT = "DELETE_NPC_EVENT"
Event.NPC_VISIBILITY_EVENT = "NPC_VISIBILITY_EVENT"
Event.CAMERA_BACKTO_ORIGIN = "CAMERA_BACKTO_ORIGIN"
Event.MONSTER_CALL_EVENT = "MONSTER_CALL_EVENT"
Event.EXCLAM_MARK_EVENT = "EXCLAM_MARK_EVENT"
Event.TASK_MARK_VISIBILITY_EVENT = "TASK_MARK_VISIBILITY_EVENT"
Event.NPC_FADE_EVENT = "NPC_FADE_EVENT"
Event.SIGN_MARK_EVENT = "SIGN_MARK_EVENT"
Event.TASK_GATHER_EVENT = "TASK_GATHER_EVENT"
Event.GATHER_ACTION_EVENT = "GATHER_ACTION_EVENT"
Event.GATHER_UI_CALL_EVENT = "GATHER_UI_CALL_EVENT"
Event.GATHER_CONTROL_EVENT = "GATHER_CONTROL_EVENT"
Event.GATHER_TO_POINT_EVENT = "GATHER_TO_POINT_EVENT"
Event.LOOP_RANDOM_EVENT_EVENT = "LOOP_RANDOM_EVENT_EVENT"
Event.SET_STONE_EVENT = "SET_STONE_EVENT"
Event.GET_ON_RIDE_EVENT = "GET_ON_RIDE_EVENT"
Event.GET_OFF_RIDE_EVENT = "GET_OFF_RIDE_EVENT"
Event.GET_RIDE_EVENT = "GET_RIDE_EVENT"
Event.NPC_FACETO_MAIN_EVENT = "NPC_FACETO_MAIN_EVENT"
Event.MAIN_FACETO_NPC_EVENT = "MAIN_FACETO_NPC_EVENT"
Event.JOB_UNLOCK_EVENT = "JOB_UNLOCK_EVENT"
Event.TASK_LOOP_UI_EVENT = "TASK_LOOP_UI_EVENT"
Event.PRESTIGE_DONATE_UI_EVENT = "PRESTIGE_DONATE_UI_EVENT"
Event.PRESTIGE_SHOP_UI_EVENT = "PRESTIGE_SHOP_UI_EVENT"
Event.BLACK_SCREEN_EVENT = "BLACK_SCREEN_EVENT"
Event.FADE_SCREEN_EVENT = "FADE_SCREEN_EVENT"
Event.MAP_SHAKE_EVENT = "MAP_SHAKE_EVENT"
Event.COMMON_UI_EVENT = "COMMON_UI_EVENT"
Event.TYPE_WORDS_EVENT = "TYPE_WORDS_EVENT"
Event.FADE_WORDS_EVENT = "FADE_WORDS_EVENT"
Event.MAP_ZOOM_EVENT = "MAP_ZOOM_EVENT"
Event.SKIP_OPERATE_EVENT = "SKIP_OPERATE_EVENT"
Event.CLOUD_EVENT = "CLOUD_EVENT"
Event.HEARTH_STONE_EVENT = "HEARTH_STONE_EVENT"
Event.DISASTER_BATTLE_EVENT = "DISASTER_BATTLE_EVENT"
Event.SKIP_FLAG_START_EVENT = "SKIP_FLAG_START_EVENT"
Event.SKIP_FLAG_END_EVENT = "SKIP_FLAG_END_EVENT"
Event.SKIP_FLAG_EVENT = "SKIP_FLAG_EVENT"
Event.CAMERA_BACKTO_MAX_EVENT = "CAMERA_BACKTO_MAX_EVENT"
Event.GATHER_CONDITIONAL_EVENT = "GATHER_CONDITIONAL_EVENT"
Event.DESKTOP_VISIBILITY_EVENT = "DESKTOP_VISIBILITY_EVENT"
Event.STORY_BRANCH_EVENT = "STORY_BRANCH_EVENT"
Event.CREATE_PUPPET_EVENT = "CREATE_PUPPET_EVENT"
Event.DELETE_PUPPET_EVENT = "DELETE_PUPPET_EVENT"
Event.WEATHER_CONTROL_EVENT = "WEATHER_CONTROL_EVENT"
Event.CHECK_TASK_ITEM_EVENT = "CHECK_TASK_ITEM_EVENT"
Event.FUNCTION_LEVELUP_EVENT = "FUNCTION_LEVELUP_EVENT"
Event.VIDEO_PLAY_EVENT = "VIDEO_PLAY_EVENT"
Event.MOVE_TO_NPC_EVENT = "MOVE_TO_NPC_EVENT"
Event.COUNT_DOWN_EVENT = "COUNT_DOWN_EVENT"
Event.SCENE_MASK_EVENT = "SCENE_MASK_EVENT"
Event.SINGLE_NPC_MASK_EVENT = "SINGLE_NPC_MASK_EVENT"
Event.RESET_SCENE_MASK_EVENT = "RESET_SCENE_MASK_EVENT"
Event.PRE_BATTLE_EVENT = "PRE_BATTLE_EVENT"
Event.RELATIVE_CAMERA_MOVE_EVENT = "RELATIVE_CAMERA_MOVE_EVENT"
Event.ENTER_DUNGEON_EVENT = "ENTER_DUNGEON_EVENT"
Event.TRANSFORM_EVENT = "TRANSFORM_EVENT"
Event.TRANSFER_STATUS_EVENT = "TRANSFER_STATUS_EVENT"
Event.SHOW_TV_TESTING_EVENT = "SHOW_TV_TESTING_EVENT"
Event.TRANSFER_IN_SAME_MAP_EVENT = "TRANSFER_IN_SAME_MAP_EVENT"

function Event:ctor()
    self.mEventName = ""
    self.mAlive = true
    self:setTag(0)
end

function Event:setEventName(eventName)
    self.mEventName = eventName
end

function Event:getEventName()
    return self.mEventName
end

function Event:setAlive(alive)
    self.mAlive = alive
end

function Event:isAlive()
    return self.mAlive
end

function Event:setStopCall(callback)
	self.mStopCallback = callback
end

function Event:stop()
	if self.mStopCallback then
		self.mStopCallback()
	end
end

function Event:setTag(tag)
    self.mTag = tag
end

function Event:getTag()
    return self.mTag
end

return Event
